package com.example.searchservice.mapper;

import com.example.bean.Orders;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDao {
    @Select("select id,amount from orders where id = #{id}")
    List<Orders> findAmountById(Integer id);

    @Select("select id,state from orders where id = #{id}")
    List<Orders> findStateById(Integer id);
}
